Dominant Color
A single color extracted from the rendered appearance of a block.
Parameters
r
red component in sRGB, normalized to the range 0, 1.
g
green component in sRGB, normalized to the range 0, 1.
b
blue component in sRGB, normalized to the range 0, 1.
weight
share of analyzed pixels represented by this color, in the range 0, 1. Higher values indicate a more prominent color. The sum of weights returned by a single BlockApi.getDominantColors call is 1.